package cn.wp.ewallet.wallet.scheduler;

import cn.wp.common.core.plugin.scheduler.SchedulerRunnable;
import cn.wp.common.core.plugin.scheduler.SchedulerTask;
import cn.wp.common.core.util.ApplicationContextUtil;
import cn.wp.ewallet.wallet.service.FeeStatisticsService;

/**
 * 手续费统计定时任务
 * create by ganjie
 */
public class FeeStatisticsRunnable extends SchedulerRunnable {

    public FeeStatisticsRunnable(SchedulerTask schedulerTask) {
        super(schedulerTask);
    }

    @Override
    public void runStart() {
        FeeStatisticsService feeStatisticeService = ApplicationContextUtil.getBean(FeeStatisticsService.class);
        feeStatisticeService.feeStatistices();
    }

    @Override
    public void runFinish(SchedulerTask schedulerTask) {
        logger.info("手续费统计完成");

    }
}
